<?php
session_start();

include "webmaster_connect.php";

$page_permission = 2;

include "webmaster_check_login.php";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
body {
	background-image: url(../images/wood.jpg);
	background-repeat: repeat-x;
	margin: 0px;
	background-position: left top;
	background-attachment: fixed;
	background-color: #000000;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
</style>
<link href="../css/webmaster_send_purchase_email.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="page_container">

<?php 

include "../admin_files/webmaster_header.php";
include "../admin_files/webmaster_navigation.php" 

?>

<div id="content_container">


<h1>Add products:</h1>

<form action="webmaster_process_add_product.php" method="post" name="add_product" id="add_product">

<h2>Customer details</h2>
<input name="customer_email" type="text" class="email" placeholder = "email address"/>
<br />
<input name="customer_firstname" type="text" class="name" placeholder = "First name"/>
<br />
<input name="customer_surname" type="text" class="name" placeholder = "Last name"/>
<br />


<select name="product_list" class="products">

<?php

$query = "SELECT * FROM saddles";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))

{

	echo '<option value="'.$row['product_id'].'">'.$row['product_id'].' - '.$row['product_name'].'</option>';
	
}

?>

</select>


<input name="next" type="button" class="button" value="Next" />

</form>

</div>
<!--content_container-->

</div> 
<!--page_container-->

</body>
</html>

